package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.CustomerTermRuleCreateValidate;
import com.mdd.admin.validate.CustomerTermRuleUpdateValidate;
import com.mdd.admin.validate.CustomerTermRuleSearchValidate;
import com.mdd.admin.vo.CustomerTermRuleListedVo;
import com.mdd.admin.vo.CustomerTermRuleDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 客户期限规则服务接口类
 * @author LikeAdmin
 */
public interface ICustomerTermRuleService {

    /**
     * 客户期限规则列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<CustomerTermRuleListedVo>
     */
    PageResult<CustomerTermRuleListedVo> list(PageValidate pageValidate, CustomerTermRuleSearchValidate searchValidate);

    /**
     * 客户期限规则详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return CustomerTermRuleDetailVo
     */
    CustomerTermRuleDetailVo detail(Integer id);

    /**
     * 客户期限规则新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(CustomerTermRuleCreateValidate createValidate);

    /**
     * 客户期限规则编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(CustomerTermRuleUpdateValidate updateValidate);

    /**
     * 客户期限规则删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
